import { h, render } from 'vue';
import popup from '@/components/popup/index.vue';
import treeSelect from '@/components/treeSelectPup/index.vue';

export const showPayPopup = (payInfo) => {
  const container = document.createElement('div');
  const Vnode = h(popup, payInfo);
  render(Vnode, container);
  document.body.appendChild(container.firstElementChild);
};

export const showTreePopup = (payInfo) => {
  const container = document.createElement('div');
  const Vnode = h(treeSelect, payInfo);
  render(Vnode, container);
  document.body.appendChild(container.firstElementChild);
};
